function A(){
    return new Promise((resolve,reject)=>{
        setTimeout(()=>{
            console.log('A')
            resolve('A success')
        },1000)
    })
}
A().finally(()=>{
    console.log(res,'finally')
})